package com.hspedu.classloader;

import org.junit.jupiter.api.Test;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/3/27
 * @time 17:16
 */
public class ClassLoaderTest {

    @Test
    public void test01(){
        ClassLoader classLoader = ClassLoaderTest.class.getClassLoader();
        ClassLoader parent = classLoader.getParent();
        ClassLoader grandParent = parent.getParent();
        System.out.println("classLoader = " + classLoader);
        System.out.println("parent = " + parent);
        System.out.println("grandParent = " + grandParent);
    }
}
